home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / exportent.z / exportent
Text File  |  1998-10-20  |  6KB  |  133 lines

  1.  
  2.  
  3.  
  4. EEEEXXXXPPPPOOOORRRRTTTTEEEENNNNTTTT((((3333))))                                                      EEEEXXXXPPPPOOOORRRRTTTTEEEENNNNTTTT((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      exportent, getexportent, setexportent, addexportent, remexportent,
  10.      endexportent, getexportopt - get exported file system information
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
  14.      ####iiiinnnncccclllluuuuddddeeee <<<<eeeexxxxppppoooorrrrtttteeeennnntttt....hhhh>>>>
  15.  
  16.      FFFFIIIILLLLEEEE ****sssseeeetttteeeexxxxppppoooorrrrtttteeeennnntttt((((vvvvooooiiiidddd))));;;;
  17.  
  18.      ssssttttrrrruuuucccctttt eeeexxxxppppoooorrrrtttteeeennnntttt ****ggggeeeetttteeeexxxxppppoooorrrrtttteeeennnntttt((((FFFFIIIILLLLEEEE ****ffffiiiilllleeeepppp))));;;;
  19.  
  20.      iiiinnnntttt aaaaddddddddeeeexxxxppppoooorrrrtttteeeennnntttt((((FFFFIIIILLLLEEEE ****ffffiiiilllleeeepppp,,,, cccchhhhaaaarrrr ****ddddiiiirrrrnnnnaaaammmmeeee,,,, cccchhhhaaaarrrr ****ooooppppttttiiiioooonnnnssss))));;;;
  21.  
  22.      iiiinnnntttt rrrreeeemmmmeeeexxxxppppoooorrrrtttteeeennnntttt((((FFFFIIIILLLLEEEE ****ffffiiiilllleeeepppp,,,, cccchhhhaaaarrrr ****ddddiiiirrrrnnnnaaaammmmeeee))));;;;
  23.  
  24.      cccchhhhaaaarrrr ****ggggeeeetttteeeexxxxppppoooorrrrttttoooopppptttt((((ssssttttrrrruuuucccctttt eeeexxxxppppoooorrrrtttteeeennnntttt ****xxxxeeeennnntttt,,,, cccchhhhaaaarrrr ****oooopppptttt))));;;;
  25.  
  26.      vvvvooooiiiidddd eeeennnnddddeeeexxxxppppoooorrrrtttteeeennnntttt((((FFFFIIIILLLLEEEE ****ffffiiiilllleeeepppp))));;;;
  27.  
  28. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  29.      These routines access the exported filesystem information in /_e_t_c/_x_t_a_b.
  30.  
  31.      _s_e_t_e_x_p_o_r_t_e_n_t opens the export information file and returns a file pointer
  32.      to use with _g_e_t_e_x_p_o_r_t_e_n_t, _a_d_d_e_x_p_o_r_t_e_n_t, _r_e_m_e_x_p_o_r_t_e_n_t, and _e_n_d_e_x_p_o_r_t_e_n_t.
  33.      _g_e_t_e_x_p_o_r_t_e_n_t reads the next line from _f_i_l_e_p and returns a pointer to an
  34.      object with the following structure containing the broken-out fields of a
  35.      line in the file, /_e_t_c/_x_t_a_b.  The fields have meanings described in
  36.      _e_x_p_o_r_t_s(4).
  37.  
  38.   #define ACCESS_OPT  ``access''  /* machines that can mount fs */
  39.   #define ROOT_OPT    ``root''    /* machines with root access of fs */
  40.   #define RO_OPT      ``ro''      /* export read-only */
  41.   #define RW_OPT      ``rw''      /* export read-mostly */
  42.   #define ANON_OPT    ``anon''    /* uid for anonymous requests */
  43.   #define NOHIDE_OPT  ``nohide''  /* visible from upper-exported fs */
  44.   struct exportent {
  45.        char *xent_dirname;        /* directory (or file) to export */
  46.        char *xent_options;        /* options, as above */
  47.   };
  48.  
  49.  
  50.      _a_d_d_e_x_p_o_r_t_e_n_t adds the _e_x_p_o_r_t_e_n_t to the end of the open file _f_i_l_e_p.  It
  51.      returns 0 if successful and  -1 on failure.  _r_e_m_e_x_p_o_r_t_e_n_t removes the
  52.      indicated entry from the list.  It also returns 0 on success and -1 on
  53.      failure.  _g_e_t_e_x_p_o_r_t_o_p_t scans the _x_e_n_t__o_p_t_i_o_n_s field of the _e_x_p_o_r_t_e_n_t
  54.      structure for a substring that matches _o_p_t.  It returns the string value
  55.      of _o_p_t, or NULL if the option is not found.
  56.  
  57.      _e_n_d_e_x_p_o_r_t_e_n_t closes the file.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. EEEEXXXXPPPPOOOORRRRTTTTEEEENNNNTTTT((((3333))))                                                      EEEEXXXXPPPPOOOORRRRTTTTEEEENNNNTTTT((((3333))))
  71.  
  72.  
  73.  
  74. NNNNOOOOTTTTEEEE
  75.      The NNNNOOOOHHHHIIIIDDDDEEEE____OOOOPPPPTTTT  option is specific to IRIX.
  76.  
  77.      To compile and link a program that calls these routines, follow the
  78.      procedures for section (3Y) routines as described in _i_n_t_r_o(3).
  79.  
  80. FFFFIIIILLLLEEEESSSS
  81.      /etc/exports
  82.      /etc/xtab
  83.  
  84. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  85.      exportfs(1M), exports(4).
  86.  
  87. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  88.      NULL pointer (0) returned on EOF or error.
  89.  
  90. BBBBUUUUGGGGSSSS
  91.      The returned _e_x_p_o_r_t_e_n_t structure points to static information that is
  92.      overwritten in each call.
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.